<?php
/**
 * | @author 韩威兵^life <1877361302@qq.com>
 * +----------------------------------------------------------------------
 * | @copyright 2016 - 2019 HQ
 * +----------------------------------------------------------------------
 * | @version $Id: 2019/4/27 11:17 jiahe_new StoreExt.php 韩威兵^life $
 * +----------------------------------------------------------------------
 */

namespace app\common\common\model\oldModel\store;

use app\common\common\model\oldModel\OldBase;

class  StoreExt extends OldBase {
    //表名称
    protected $table = 'store_ext';
    //错误消息
    public $error = '';
    //状态值
    public $status = true;
    //其他附带信息
    public $data = [];

    /**
     * 通过where条件查询数据
     * @param $where
     * @return false|\PDOStatement|string|\think\Collection
     */
    public function allByWhere($where)
    {
        return $this->where($where)->selectToArray();
    }


    /**
     * @param $where
     * @return array|false|\PDOStatement|string|\think\Model
     */
    public function findByWhere($where){
        return $this->where($where)->findToArray();
    }


}  